package com.xb.cloud.gateway.common.constant;
/**
 * 
 * @ClassName:  GatewayExceptionType   
 * @Description:针对移动网管，除java提供的异常外，该枚举类可定义更多的异常类型
 * @author: 鲜备科技
 * @date:   2017年12月27日 下午4:22:43   
 *     
 * @Copyright: 2017 www.xianbeitech.com Inc. All rights reserved. 
 *
 */
public enum GatewayExceptionType {
	//网管找不到adapter异常
	NO_PADAPTER("MissAdapter", "can not found the adapter:"),
	//adapter没有定义patch
	ADAPTER_NO_PATH("ADAPTER_NO_PATCH", "the adapter donot define url path:"),
	//adapter重复的path
	ADAPTER_DUPLICATION_PATH("ADAPTER_NO_PATCH", "the adapter define duplication url path:");
	private String exceptionType;
	private String exceptionDetail;
	private GatewayExceptionType(String exceptionType, String exceptionDetail) {
		this.exceptionType = exceptionType;
		this.exceptionDetail = exceptionDetail;
	}
	
	public String getExceptionType() {
		return exceptionType;
	}

	public void setExceptionType(String exceptionType) {
		this.exceptionType = exceptionType;
	}

	public String getExceptionDetail() {
		return exceptionDetail;
	}
	public void setExceptionDetail(String exceptionDetail) {
		this.exceptionDetail = exceptionDetail;
	}
	
}
